using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Unibot
{
    class TitleScreen : Screen
    {
        Texture2D splashImage;
        
        public TitleScreen(UnibotGame game) : base(game)
        {
            //LoadSprites:
            splashImage = content.Load<Texture2D>("Images\\UnibotsSplash");
            
            //LoadAudio:


        }

        public override void Draw(GameTime gameTime)
        {
            spritebatch.Begin();
            spritebatch.Draw(splashImage, Vector2.Zero, Color.White);
            spritebatch.End();
        }

        public override void Update(GameTime gameTime)
        {
            if (MyGamePad.GetState(PlayerIndex.One).Buttons.Start == ButtonState.Pressed)
            {
                game.setCurrentState(GameState.InLevel);
                game.changeScreen(new LevelScreen(game));
            }
        }

    }
}
